from click import *


@command()
@argument("add", default=False)
@argument("list", default=False)
@option("--state", default="all", help="new or done,finish or unfinish")
def todo(list, add, state):
    print(f"add:{add}, list:{list}") # 按顺序传入参数，把第一个参数传入add, 把第二个参数传入list
    if list:
        print(f"查看功能, {list}, {state}")
    if add:
        print(f"新增功能, {add}")


if __name__ == '__main__':
    todo()